import 'package:flutter/material.dart';

/// 创建 AppBar
AppBar getAppBar(String title, {List<Widget>? actions, Widget? leading, PreferredSizeWidget? bottom}) {
  return AppBar(
    title: Text(title),
    elevation: 10.0,
    centerTitle: true,
    actions: actions,
    leading: leading,
    bottom: bottom,
  );
}
